package c.d.a.a.i;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Align;
import android.graphics.Paint.Style;
import c.d.a.a.a.a;
import c.d.a.a.e.b;
import c.d.a.a.f.b.d;
import c.d.a.a.j.g;
import c.d.a.a.j.h;
import com.pgl.sys.ces.out.ISdkLite;

/* compiled from: DataRenderer */
public abstract class c extends j {
    public a b;
    public Paint c;
    public Paint d;
    public Paint e;

    public c(a aVar, h hVar) {
        super(hVar);
        this.b = aVar;
        Paint paint = new Paint(1);
        this.c = paint;
        paint.setStyle(Style.FILL);
        paint = new Paint(4);
        paint = new Paint(1);
        this.e = paint;
        paint.setColor(Color.rgb(63, 63, 63));
        this.e.setTextAlign(Align.CENTER);
        this.e.setTextSize(g.d(9.0f));
        paint = new Paint(1);
        this.d = paint;
        paint.setStyle(Style.STROKE);
        this.d.setStrokeWidth(2.0f);
        this.d.setColor(Color.rgb(ISdkLite.REGION_UNSET, 187, 115));
    }

    public void a(d dVar) {
        this.e.setTypeface(dVar.e());
        this.e.setTextSize(dVar.f0());
    }

    public abstract void b(Canvas canvas);

    public abstract void c(Canvas canvas);

    public abstract void d(Canvas canvas, b[] bVarArr);

    public abstract void e(Canvas canvas);

    public abstract void f();

    public boolean g(c.d.a.a.f.a.b bVar) {
        return ((float) bVar.getData().e()) < ((float) bVar.getMaxVisibleCount()) * this.a.i;
    }
}
